TextShape scaleY
Gets or sets the scaling in the Y axis direction. ScaleY adjusts the vertical scale to increase or decrease the height of the text without changing the font size.
public float scaleY {get;Set} |
Return value
float | Scaling percentage applied on the shape |
Example
Copy
TextShape textShape = new TextShape();
textShape.AddText("Sample text Sample text", "Arial", FontStyle.Regular, 10f, 1f);
textShape.TextBoxHeight = 20;
textShape.TextBoxWidth = 60;
textShape.Location.X = 0;
textShape.Location.Y = 0;
textShape.ScaleX = 1.2f;
textShape.ScaleY = 1.2f;